import drawQrcode from '../../utils/weapp.qrcode.esm'

Page({
  changeText() {
    drawQrcode({
      width: 200,
      height: 200,
      canvasId: 'myQrcode',
      // ctx: wx.createCanvasContext('myQrcode'),
      text: 'https://www.baidu.com/',
      // v1.0.0+版本支持在二维码上绘制图片
      image: {
        imageResource: '../../images/banners/wbb.jpeg',
        dx: 70,
        dy: 70,
        dWidth: 60,
        dHeight: 60
      }
    })
  },
  onLoad() {

  }
})